#ifndef HTTPRESPONSE_H
#define HTTPRESPONSE_H

#include <QtNetwork/QTcpSocket>
#include <QMap>

namespace As {

class HttpResponse
{
public:
    HttpResponse();
    HttpResponse(QTcpSocket * socket, const QString & body = "",
                 const QString & m_status = "200 OK");
    ~HttpResponse();

    QTcpSocket * m_socket;
    QMap<QString, QString> m_headerMap;
    QString m_body;
    QString m_status;

    void addHeader(const QString & key, const QString & value);
};

}

Q_DECLARE_METATYPE(As::HttpResponse)

#endif // HTTPRESPONSE_H
